// pages/home/home.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
swiperList:[{
  imageSrc:"/img/首页/轮播1.png",
  ur1:"/pages/goods-list/goods-list"
},
{
  imageSrc:"/img/首页/轮播2.jpg",
  ur1:"/pages/goods-list/goods-list"
},
{
  imageSrc:"/img/首页/轮播3.jpg",
  ur1:"/pages/goods-list/goods-list"
},],
catesList:[
  {
    imageSrc:"/img/首页/首页1.png",
    ur1:"/pages/goods-list/goods-list",
  },
  {
    imageSrc:"/img/首页/首页2.png",
    ur1:"/pages/goods-list/goods-list"
  },
  {
    imageSrc:"/img/首页/首页3.png",
    ur1:"/pages/goods-list/goods-list"
  }
],
FloorList:[

  {imageSrc:"/img/首页/small1.png",
ur1:"/pages/goods-list/goods-list"
},
{
  imageSrc:"/img/首页/small2.png",
  ur1:"/pages/goods-list/goods-list"
},
{
  imageSrc:"/img/首页/small3.png",
  ur1:"/pages/goods-list/goods-list"
},
{
  imageSrc:"/img/首页/small4.png",
  ur1:"/pages/goods-list/goods-list"
},
],
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
this.getSwiperList()

  },
getSwiperList(){
  wx.request({
    url: 'https//www.escook.cn/slides',
    method:'GET',
    success:(res) => {
      console.log(res)
    }
  })
},
getcatesList(){
  wx.request({
    url: 'https//www.escook.cn/slides',
    method:'GET',
    success:(res) => {
      console.log(res)
    }
  })
},
getFloorList(){
  wx.request({
    url: 'https//www.escook.cn/slides',
    method:'GET',
    success:(res) => {
      console.log(res)
    }
  })
},
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})